#!/usr/bin/env bash
# syntax ./runremote.sh <remote sudo capable id> <remote ip address> <local shell file containing commands>

ssh -t $1@$2 $(tr "\r\n" " ; " < $3)